import request from '@/utils/request'

// 新增拆卸单
export function createStkDismountDetails(data) {
  return request({
    url: '/tStkDismount/createStkDismountDetails',
    method: 'post',
    data
  })
}
// 拆卸单详情
export function queryStkDesmountDetails(params) {
  return request({
    url: '/tStkDismount/queryStkDismountDetails',
    method: 'get',
    params
  })
}
// 拆卸单列表
export function queryStkDismountList(data) {
  return request({
    url: '/tStkDismount/queryStkDismountList',
    method: 'post',
    data
  })
}
// 拆卸单修改
export function updateStkDismountDetails(data) {
  return request({
    url: '/tStkDismount/updateStkDismountDetails',
    method: 'post',
    data
  })
}
// 拆卸单提交
export function submitDismounts(data) {
  return request({
    url: '/tStkDismount/submitDismounts',
    method: 'post',
    data
  })
}
// 拆卸单反提交
export function notsubmitDismounts(data) {
  return request({
    url: '/tStkDismount/notsubmitDismounts',
    method: 'post',
    data
  })
}
// 拆卸单审核
export function auditDismounts(data) {
  return request({
    url: '/tStkDismount/auditDismounts',
    method: 'post',
    data
  })
}
// 拆卸单反审核
export function unauditDismounts(data) {
  return request({
    url: '/tStkDismount/unauditDismounts',
    method: 'post',
    data
  })
}
// 拆卸单删除
export function delDismounts(data) {
  return request({
    url: '/tStkDismount/delDismounts',
    method: 'post',
    data
  })
}
// 拆卸单成品明细 自动拆分
export function queryChildByBom(data) {
  return request({
    url: '/tStkDismountChild/queryChildByBom',
    method: 'post',
    data
  })
}
// 组装拆卸表审批列表
export function queryStkDismountApprovalList(data) {
  return request({
    url: '/tStkDismount/queryStkDismountApprovalList',
    method: 'post',
    data
  })
}
// 组装拆卸表审批不同意
export function tStkDismountAuditUnApproval(data) {
  return request({
    url: '/tStkDismount/tStkDismountAuditUnApproval',
    method: 'post',
    data
  })
}
